<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/Public/css/bootstrap.min.css">
    <link rel="stylesheet" href="/Public/em-ui/index.css">
</head>
<STYLE>
    body {
        width: 740px;
        margin: auto;
    }

    .kong1 {
        height: 20px;
    }
    .imgsid{
        width: 25px;
        height: 25px;
    }
</STYLE>
<body>

<div id="app">
    
    <ul class="el-menu el-menu--horizontal el-menu--dark">
        <a href="<?php echo U('/Admin/main');?>"><li class="el-menu-item">主页</li></a>
        <a href="<?php echo U('/Admin/shop');?>"><li class="el-menu-item">商品管理</li></a>
        <a href="<?php echo U('/Admin/Emtpy/index');?>"><li class="el-menu-item">退出登录</li></a>
    </ul>


    <div class="kong1"></div>
    <div class="panel panel-primary">
        <div class="panel-heading">
            用户购买商品信息<!-- 头部-->
        </div>
        
    <table class="table">
        <tr>
            <th>商品</th>
            <th>图片</th>
            <th>价格(元)</th>
            <th>折扣</th>
            <th>类型</th>
        </tr>
        <!--<?php var_dump($shop) ?>-->
        <?php if(is_array($shop)): foreach($shop as $key=>$shops): ?><tr>
                <td><?php echo ($shops["shopname"]); ?></td>
                <td><img class="imgsid" src="/Public/imgs<?php echo ($shops["shopimg"]); ?>" alt=""></td>
                <td><?php echo ($shops["price"]); ?></td>
                <td><?php echo ($shops["discount"]); ?></td>
                <td><?php echo ($shops["leibiename"]); ?></td>
            </tr><?php endforeach; endif; ?>
    </table>
<!--身体 -->
    </div>
    <!--弹窗-->
    <!--弹窗-->
    <!--弹窗-->
    <!--弹窗-->

</div>

<script src="/Public/js/vue.min.js"></script>
<script src="/Public/js/vue-resource.min.js"></script>
<script src="/Public/em-ui/index.js"></script>
<script src="/Public/js/jquery-1.11.1.min.js"></script>
<script src="/Public/js/bootstrap.min.js"></script>
<script>
    Vue.http.options.emulateJSON = true;

</script>

    <script>
        new Vue({
            el: "#app"
        })
    </script>

</body>
</html>